<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\Works;

/**
 * @property int $works_id 作品id
 * @property string $content 文案内容
 * @author SamXiao
 *
 */
class WorksText extends Model
{
    protected $table = 'xyj_works_text';
    
    public function worksInfo(){
        return $this->hasOne('App\Models\Works' , 'id', 'works_id')->withTrashed();
    }
      
}
